package com.example.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.Merchant;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tyhxzy
 * @since 2023-11-03
 */
public interface MerchantMapper extends BaseMapper<Merchant> {
    @Insert("insert into merchant(zid,type) values (#{zid},#{type})")
    int addType(Merchant merchant);

    @Update("UPDATE merchant SET STATUS =0 WHERE id=#{id}")
    int updateStatus(Integer id);
    @Update("UPDATE merchant SET STATUS =1 WHERE id=#{id}")
    int updateStatus1(Integer id);
}
